from django.db import models

from lib import BaseModel


# Create your models here.
# 【2】出版社表
class Publish(BaseModel):
    # 出版社名字
    name = models.CharField(max_length=32, verbose_name="出版社名字")
    # 出版社地址
    addr = models.CharField(max_length=64, verbose_name="出版社地址")
    # 出版社电话
    phone = models.CharField(max_length=11, verbose_name="出版社电话")

    class Meta:
        db_table = "publish"
